import Mock from "mockjs";
import homeApi from "./mockServeData/home"
import userApi from "./mockServeData/user"
import permissionApi from "./mockServeData/permission";

// 拦截指定请求并将模拟数据返回
// 登录信息
Mock.mock(/permission\/getMenu/, 'post', permissionApi.getMenu)

Mock.mock('/home/getData', homeApi.getStaticalData)

// 参数：拦截URL、响应体的数据类型，响应体数据
Mock.mock(/user\/add/, 'post', userApi.createUser)
Mock.mock(/user\/edit/, 'post', userApi.updateUser)
Mock.mock(/user\/getList/, 'get', userApi.getUserList)
Mock.mock(/user\/del/, 'get', userApi.deleteUser)
